package asia.kalin.controller;

import asia.kalin.domain.ao.Result;
import asia.kalin.service.IPriceAssessService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: Kalin
 * @Name：PriceAssessController
 * @Date: 2025/3/24
 * @description
 */

@RestController
@RequestMapping("/priceassess")
@RequiredArgsConstructor
public class PriceAssessController {

    private final IPriceAssessService priceAssessService;

    /**
     * 根据检测结果id查询解决方案评估价格
     * @param resultId 检测结果id
     * @return Result
     */
    @GetMapping("/getInfoById")
    public Result getInfoById(@RequestParam String resultId){
        return priceAssessService.getPriceAssessById(resultId);
    }

}
